package com.csun.cmny.provider.service.impl;

import com.csun.cmny.provider.dao.ExpenseCtrMapper;
import com.csun.cmny.provider.pojo.ExpenseCtr;
import com.csun.cmny.provider.service.ExpenseCtrService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("ExpenseCtrService")
public class ExpenseCtrServiceImpl implements ExpenseCtrService {
    @Resource
    ExpenseCtrMapper expenseCtrMapper;

    @Override
    public int insert(ExpenseCtr expenseCtr) {
        return expenseCtrMapper.insertSelective(expenseCtr);
    }

    @Override
    public int delExpCtrById(Integer expensectrId) {
        return expenseCtrMapper.deleteByPrimaryKey(expensectrId);
    }

    @Override
    public int updateExpCtrById(ExpenseCtr expenseCtr) {
        return expenseCtrMapper.updateByPrimaryKeySelective(expenseCtr);
    }

    @Override
    public ExpenseCtr selectByExpCtr(ExpenseCtr expenseCtr) {
        return expenseCtrMapper.selectByExpCtr(expenseCtr);
    }

    @Override
    public ExpenseCtr selectById(Integer expensectrId) {
        return expenseCtrMapper.selectByPrimaryKey(expensectrId);
    }

    @Override
    public List<Map<String, Object>> showAll(Map<String, Object> queryMap) {
        return expenseCtrMapper.showAll(queryMap);
    }

    @Override
    public List<ExpenseCtr> selectOne(ExpenseCtr expenseCtr) {
        return expenseCtrMapper.selectOne(expenseCtr);
    }
}
